package com.thinkgem.jeesite.modules.source.entity.floor;

import com.thinkgem.jeesite.common.persistence.DataEntity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 * Created by aulbrother on 2017/6/4.
 */
@XmlRootElement(name = "floor")
public class Floor extends DataEntity<EleSourceFloor>{
    private EleSourceFloor group;
    private String floorId;//物理楼层
    private String volumeCn;//中文楼层发声
    private String volumeEn;//英文楼层发声
    private String toFloor;//显示的楼层

    public Floor(){}
    public Floor(EleSourceFloor eleSourceFloor){
        this.group = eleSourceFloor;
    }

    @XmlElement(name="id")
    public String getFloorId(){
        return floorId;
    }

    public void setFloorId(String floorId){
        this.floorId = floorId;
    }

    @XmlElement(name="volume_cn")
    public String getVolumeCn(){
        return volumeCn;
    }

    public void setVolumeCn(String volumeCn){
        this.volumeCn = volumeCn;
    }

    @XmlElement(name="volume_en")
    public String getVolumeEn(){
        return volumeEn;
    }

    public void setVolumeEn(String volumeEn){
        this.volumeEn = volumeEn;
    }

    @XmlElement(name="to_floor")
    public String getToFloor(){
        return toFloor;
    }

    public void setToFloor(String toFloor){
        this.toFloor = toFloor;
    }

    @XmlTransient
    public EleSourceFloor getGroup(){
        return group;
    }

    public void setGroup(EleSourceFloor group){
        this.group = group;
    }
}
